Renamed g_const_pointer => gconstpointer.
authorOwen Taylor <otaylor@src.gnome.org>
Wed, 10 Jun 1998 16:59:28 +0000 (16:59 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 10 Jun 1998 16:59:28 +0000 (16:59 +0000)
21 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkcc.c
gdk/x11/gdkcc-x11.c
glib/ChangeLog
glib/gdataset.c
glib/ghash.c
glib/glib.h
glib/gstring.c
glib/gutils.c
glib/testglib.c
gtk/gtkaccelgroup.c
gtk/gtkbindings.c
gtk/gtkmain.c
gtk/gtksignal.c
gtk/gtktext.c

index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 140772a93dbe04f04a60bb1106e9f340fb79f4fe..f760a0c22ea61efea6e2790474168933a081f8d4 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jun 10 12:57:03 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
+          glib/gutils.c glib/testglib.c glib/gdataset.c
+          gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
+          gtk/gtktext.c gtk/gtkbindings.c:
+
+        renamed g_const_pointer => gconstpointer
+
 Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
index 0465094972408940aca5620a77bfb7511c29e6bf..12631a0772d7b03bd6e0e7afa4dc52a493f76404 100644 (file)
@@ -66,7 +66,7 @@
 
 
 static guint
-hash_color (g_const_pointer key)
+hash_color (gconstpointer key)
 {
   const GdkColor *color = key;
 
@@ -74,8 +74,8 @@ hash_color (g_const_pointer key)
 }
 
 static gint
-compare_colors (g_const_pointer a,
-               g_const_pointer b)
+compare_colors (gconstpointer a,
+               gconstpointer b)
 {
   const GdkColor *aa = a;
   const GdkColor *bb = b;
index 0465094972408940aca5620a77bfb7511c29e6bf..12631a0772d7b03bd6e0e7afa4dc52a493f76404 100644 (file)
@@ -66,7 +66,7 @@
 
 
 static guint
-hash_color (g_const_pointer key)
+hash_color (gconstpointer key)
 {
   const GdkColor *color = key;
 
@@ -74,8 +74,8 @@ hash_color (g_const_pointer key)
 }
 
 static gint
-compare_colors (g_const_pointer a,
-               g_const_pointer b)
+compare_colors (gconstpointer a,
+               gconstpointer b)
 {
   const GdkColor *aa = a;
   const GdkColor *bb = b;
index e9268116300e2d26e8c073ddb29d4c766c28e8b6..4b21235d1529b87f5fca01082d143297919e4f41 100644 (file)
@@ -1,3 +1,7 @@
+Wed Jun 10 12:56:07 1998  Owen Taylor  <otaylor@gtk.org>
+
+       * glib.h: renamed g_const_pointer => gconstpointer
+
 Tue Jun  9 17:47:33 1998  Owen Taylor  <otaylor@gtk.org>
 
        * glib.h: Remove #error - HP/UX.
index 35ec00779085b056172bd720145a4140718b44d3..aef270cbf4d6144c9dabd87a9b3c0a1943d69629 100644 (file)
@@ -41,14 +41,14 @@ struct _GDatasetData
 
 struct _GDataset
 {
-  g_const_pointer location;
+  gconstpointer location;
   GDatasetData *data_list;
 };
 
 
 /* --- prototypes --- */
-static inline GDataset*        g_dataset_lookup        (g_const_pointer dataset_location);
-static inline void     g_dataset_destroy_i     (GDataset        *dataset);
+static inline GDataset*        g_dataset_lookup        (gconstpointer dataset_location);
+static inline void     g_dataset_destroy_i     (GDataset     *dataset);
 static void            g_dataset_initialize    (void);
 static guint*          g_dataset_id_new        (void);
 
@@ -65,7 +65,7 @@ static guint g_dataset_id_index = G_DATASET_ID_BLOCK_SIZE + 1;
 
 /* --- functions --- */
 static inline GDataset*
-g_dataset_lookup (g_const_pointer      dataset_location)
+g_dataset_lookup (gconstpointer        dataset_location)
 {
   register GDataset *dataset;
   
@@ -109,7 +109,7 @@ g_dataset_destroy_i (GDataset *dataset)
 }
 
 void
-g_dataset_destroy (g_const_pointer  dataset_location)
+g_dataset_destroy (gconstpointer  dataset_location)
 {
   register GDataset *dataset;
   
@@ -121,9 +121,9 @@ g_dataset_destroy (g_const_pointer  dataset_location)
 }
 
 void
-g_dataset_id_set_destroy (g_const_pointer  dataset_location,
-                         guint            key_id,
-                         GDestroyNotify   destroy_func)
+g_dataset_id_set_destroy (gconstpointer  dataset_location,
+                         guint          key_id,
+                         GDestroyNotify destroy_func)
 {
   g_return_if_fail (dataset_location != NULL);
   
@@ -150,8 +150,8 @@ g_dataset_id_set_destroy (g_const_pointer  dataset_location,
 }
 
 gpointer
-g_dataset_id_get_data (g_const_pointer  dataset_location,
-                      guint            key_id)
+g_dataset_id_get_data (gconstpointer  dataset_location,
+                      guint          key_id)
 {
   g_return_val_if_fail (dataset_location != NULL, NULL);
   
@@ -174,10 +174,10 @@ g_dataset_id_get_data (g_const_pointer  dataset_location,
 }
 
 void
-g_dataset_id_set_data_full (g_const_pointer  dataset_location,
-                           guint            key_id,
-                           gpointer         data,
-                           GDestroyNotify   destroy_func)
+g_dataset_id_set_data_full (gconstpointer  dataset_location,
+                           guint          key_id,
+                           gpointer       data,
+                           GDestroyNotify destroy_func)
 {
   register GDataset *dataset;
   register GDatasetData *list;
index 48915703610054f71884cf799c8a961f02d0d918..ceee09843c07b64c12e63352c554999f1888a4e3 100644 (file)
@@ -145,8 +145,8 @@ g_hash_table_insert (GHashTable *hash_table,
 }
 
 void
-g_hash_table_remove (GHashTable        *hash_table,
-                    g_const_pointer    key)
+g_hash_table_remove (GHashTable      *hash_table,
+                    gconstpointer    key)
 {
   GRealHashTable *rhash_table;
   GHashNode *node;
@@ -186,8 +186,8 @@ g_hash_table_remove (GHashTable        *hash_table,
 }
 
 gpointer
-g_hash_table_lookup (GHashTable     *hash_table,
-                    g_const_pointer key)
+g_hash_table_lookup (GHashTable   *hash_table,
+                    gconstpointer key)
 {
   GRealHashTable *rhash_table;
   GHashNode *node;
index c1c3c5ee5dc671894e31ac68fadf13cfe23da978..75e02862368253837719fb3a71853c34b6321886 100644 (file)
@@ -389,7 +389,7 @@ typedef double gldouble;
 #endif /* 0 */
 
 typedef void* gpointer;
-typedef const void *g_const_pointer;
+typedef const void *gconstpointer;
 
 #if (SIZEOF_CHAR == 1)
 typedef signed char    gint8;
@@ -472,9 +472,9 @@ typedef void                (*GScannerMsgFunc)      (GScanner *scanner,
                                                 gint      error);
 typedef void           (*GDestroyNotify)       (gpointer  data);
 
-typedef guint          (*GHashFunc)            (g_const_pointer  key);
-typedef gint           (*GCompareFunc)         (g_const_pointer  a,
-                                                g_const_pointer  b);
+typedef guint          (*GHashFunc)            (gconstpointer    key);
+typedef gint           (*GCompareFunc)         (gconstpointer    a,
+                                                gconstpointer    b);
 
 struct _GList
 {
@@ -627,9 +627,9 @@ void            g_hash_table_insert  (GHashTable     *hash_table,
                                  gpointer        key,
                                  gpointer        value);
 void       g_hash_table_remove  (GHashTable     *hash_table,
-                                 g_const_pointer key);
+                                 gconstpointer   key);
 gpointer    g_hash_table_lookup         (GHashTable     *hash_table,
-                                 g_const_pointer  key);
+                                 gconstpointer    key);
 void       g_hash_table_freeze  (GHashTable     *hash_table);
 void       g_hash_table_thaw    (GHashTable     *hash_table);
 void       g_hash_table_foreach (GHashTable     *hash_table,
@@ -893,29 +893,29 @@ GArray* g_rarray_truncate (GArray   *array,
 
 /* Hash Functions
  */
-gint  g_str_equal (g_const_pointer v,
-                  g_const_pointer v2);
-guint g_str_hash  (g_const_pointer v);
+gint  g_str_equal (gconstpointer   v,
+                  gconstpointer   v2);
+guint g_str_hash  (gconstpointer v);
 
 /* This "hash" function will just return the key's adress as an
  * unsigned integer. Useful for hashing on plain adresses or
  * simple integer values.
  */
-guint g_direct_hash (g_const_pointer key);
+guint g_direct_hash (gconstpointer key);
 
 
 /* Location Associated Data
  */
-void     g_dataset_destroy             (g_const_pointer dataset_location);
+void     g_dataset_destroy             (gconstpointer   dataset_location);
 guint    g_dataset_try_key             (const gchar    *key);
 guint    g_dataset_force_id            (const gchar    *key);
-gpointer  g_dataset_id_get_data                (g_const_pointer dataset_location,
+gpointer  g_dataset_id_get_data                (gconstpointer   dataset_location,
                                         guint           key_id);
-void     g_dataset_id_set_data_full    (g_const_pointer dataset_location,
+void     g_dataset_id_set_data_full    (gconstpointer   dataset_location,
                                         guint           key_id,
                                         gpointer        data,
                                         GDestroyNotify  destroy_func);
-void     g_dataset_id_set_destroy      (g_const_pointer dataset_location,
+void     g_dataset_id_set_destroy      (gconstpointer   dataset_location,
                                         guint           key_id,
                                         GDestroyNotify  destroy_func);
 
index a4c20449c96baccec3485982705a7ab8c45aa660..8350552d213bb9ceec95b708070a051404159cd5 100644 (file)
@@ -50,14 +50,14 @@ static GMemChunk *string_mem_chunk = NULL;
  */
 
 gint
-g_str_equal (g_const_pointer v, g_const_pointer v2)
+g_str_equal (gconstpointer v, gconstpointer v2)
 {
   return strcmp ((const gchar*) v, (const gchar*)v2) == 0;
 }
 
 /* a char* hash function from ASU */
 guint
-g_str_hash (g_const_pointer v)
+g_str_hash (gconstpointer v)
 {
   const char *s = (char*)v;
   const char *p;
index ef1b4090d8ad0f61aa5e3cbcebaaeaf09ce6bb9f..d24bbdbe6ee790e0415ff290ac6b1cbf45f026b3 100644 (file)
@@ -847,7 +847,7 @@ g_parse_debug_string  (const gchar *string,
 }
 
 guint
-g_direct_hash(g_const_pointer key)
+g_direct_hash(gconstpointer key)
 {
   return GPOINTER_TO_UINT (key);
 }
index 8c638eefaa13b24c839ff1fa873a309522197036..e96dfb57000afbd9bfc26dab6584c3d3e5a2cf95 100644 (file)
@@ -33,20 +33,20 @@ my_hash_callback (gpointer key,
 }
 
 guint
-my_hash (g_const_pointer key)
+my_hash (gconstpointer key)
 {
   return (guint) *((const gint*) key);
 }
 
 gint
-my_hash_compare (g_const_pointer a,
-                g_const_pointer b)
+my_hash_compare (gconstpointer a,
+                gconstpointer b)
 {
   return *((const gint*) a) == *((const gint*) b);
 }
 
 gint 
-my_list_compare_one (g_const_pointer a, g_const_pointer b)
+my_list_compare_one (gconstpointer a, gconstpointer b)
 {
   gint one = *((const gint*)a);
   gint two = *((const gint*)b);
@@ -54,7 +54,7 @@ my_list_compare_one (g_const_pointer a, g_const_pointer b)
 }
 
 gint 
-my_list_compare_two (g_const_pointer a, g_const_pointer b)
+my_list_compare_two (gconstpointer a, gconstpointer b)
 {
   gint one = *((const gint*)a);
   gint two = *((const gint*)b);
@@ -69,8 +69,8 @@ my_list_print (gpointer a, gpointer b)
 }; */
 
 gint
-my_compare (g_const_pointer a,
-           g_const_pointer b)
+my_compare (gconstpointer a,
+           gconstpointer b)
 {
   const char *cha = a;
   const char *chb = b;
index 36168883ea1ec118b5f1bcf1a79e7c92a9c95967..1eb3e77628a0d7efab2733b8f621dbae8a464033 100644 (file)
@@ -57,8 +57,8 @@ static GMemChunk      *accel_entries_mem_chunk = NULL;
 
 /* --- functions --- */
 static gint
-gtk_accel_entries_equal (g_const_pointer a,
-                        g_const_pointer b)
+gtk_accel_entries_equal (gconstpointer a,
+                        gconstpointer b)
 {
   const GtkAccelEntry *e1;
   const GtkAccelEntry *e2;
@@ -72,7 +72,7 @@ gtk_accel_entries_equal (g_const_pointer a,
 }
 
 static guint
-gtk_accel_entries_hash (g_const_pointer a)
+gtk_accel_entries_hash (gconstpointer a)
 {
   const GtkAccelEntry *e;
   guint h;
index be3ddc87aacd79eb703c57eb4efce4611760ca61..ad75a0228ba6af7449e5e06de577bdb6d721a187 100644 (file)
@@ -70,7 +70,7 @@ binding_signal_free (GtkBindingSignal *sig)
 }
 
 static guint
-binding_entry_hash (g_const_pointer  key)
+binding_entry_hash (gconstpointer  key)
 {
   register const GtkBindingEntry *e = key;
   register guint h;
@@ -82,8 +82,8 @@ binding_entry_hash (g_const_pointer  key)
 }
 
 static gint
-binding_entries_compare (g_const_pointer  a,
-                        g_const_pointer  b)
+binding_entries_compare (gconstpointer  a,
+                        gconstpointer  b)
 {
   register const GtkBindingEntry *ea = a;
   register const GtkBindingEntry *eb = b;
@@ -762,8 +762,8 @@ binding_match_activate (GSList          *pspec_list,
 }
 
 static gint
-gtk_binding_pattern_compare (g_const_pointer a,
-                            g_const_pointer b)
+gtk_binding_pattern_compare (gconstpointer a,
+                            gconstpointer b)
 {
   register const GtkPatternSpec *pa  = a;
   register const GtkPatternSpec *pb  = b;
index 802ebce6af4650c74991d00aef7ffa8918ca6ff5..732f7431e05fa056889505fee8b1342a952a7f4e 100644 (file)
@@ -128,11 +128,11 @@ static gint  gtk_timeout_remove_from_list (GList               **list,
                                           guint                 tag, 
                                           gint                  remove_link);
 
-static gint  gtk_idle_compare           (g_const_pointer      a, 
-                                         g_const_pointer      b);
+static gint  gtk_idle_compare           (gconstpointer      a, 
+                                         gconstpointer      b);
 
-static gint  gtk_timeout_compare        (g_const_pointer      a, 
-                                         g_const_pointer      b);
+static gint  gtk_timeout_compare        (gconstpointer      a, 
+                                         gconstpointer      b);
 
 const guint gtk_major_version = GTK_MAJOR_VERSION;
 const guint gtk_minor_version = GTK_MINOR_VERSION;
@@ -995,7 +995,7 @@ gtk_timeout_remove (guint tag)
  * sure that we insert at the _end_ of the idles of this priority
  */
 static gint
-gtk_idle_compare (g_const_pointer a, g_const_pointer b)
+gtk_idle_compare (gconstpointer a, gconstpointer b)
 {
   return (((const GtkIdleFunction *)a)->priority <
          ((const GtkIdleFunction *)b)->priority)
@@ -1364,7 +1364,7 @@ gtk_exit_func (void)
  * sure that we insert after timeouts of equal interval
  */
 static gint
-gtk_timeout_compare (g_const_pointer a, g_const_pointer b)
+gtk_timeout_compare (gconstpointer a, gconstpointer b)
 {
   return (((const GtkTimeoutFunction *)a)->interval < 
          ((const GtkTimeoutFunction *)b)->interval)
index 0e08565bb455f60b1c3129a2e8b14181583bb3c3..45330e84f1aea35a90c0361faacd9558eacd5370 100644 (file)
@@ -119,9 +119,9 @@ struct _GtkDisconnectInfo
 };
 
 
-static guint       gtk_signal_hash            (g_const_pointer h);
-static gint        gtk_signal_compare         (g_const_pointer h1,
-                                               g_const_pointer h2);
+static guint       gtk_signal_hash            (gconstpointer h);
+static gint        gtk_signal_compare         (gconstpointer h1,
+                                               gconstpointer h2);
 static GtkHandler*  gtk_signal_handler_new     (void);
 static void        gtk_signal_handler_ref     (GtkHandler    *handler);
 static void        gtk_signal_handler_unref   (GtkHandler    *handler,
@@ -1186,7 +1186,7 @@ gtk_signal_set_funcs (GtkSignalMarshal marshal_func,
 }
 
 static guint
-gtk_signal_hash (g_const_pointer h)
+gtk_signal_hash (gconstpointer h)
 {
   register const GtkSignalHash *hash = h;
   
@@ -1194,8 +1194,8 @@ gtk_signal_hash (g_const_pointer h)
 }
 
 static gint
-gtk_signal_compare (g_const_pointer h1,
-                   g_const_pointer h2)
+gtk_signal_compare (gconstpointer h1,
+                   gconstpointer h2)
 {
   register const GtkSignalHash *hash1 = h1;
   register const GtkSignalHash *hash2 = h2;
index 1acca9b5bcfd193f20e5abcc32d46e3e5515cb36..47d63fcc534c737c795d1f8c66813b4a3dcc6b3f 100644 (file)
@@ -2495,7 +2495,7 @@ insert_expose (GtkText* text, guint old_pixels, gint nchars,
 }
 
 static guint
-font_hash (g_const_pointer font)
+font_hash (gconstpointer font)
 {
   return gdk_font_id ((const GdkFont*) font);
 }